package com.gbiac.modules.monitor.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.gbiac.modules.monitor.entity.Rule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

/**
 * @Description: 规则配置
 * @Author: jeecg-boot
 * @Date:   2024-11-30
 * @Version: V1.0
 */
@Component(value = "gbiacRuleMapper")
public interface RuleMapper extends BaseMapper<Rule> {

    /**
     * 获取最新规则列表
     * @param queryWrapper
     * @return
     */
    List<Rule> listLastRule(@Param(Constants.WRAPPER) Wrapper<Rule> queryWrapper);
}
